package com.gmail.fanvaron.Listener;

import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockIgniteEvent;
import org.bukkit.event.block.BlockIgniteEvent.IgniteCause;

import com.gmail.fanvaron.Main.MarvMonsterPack;

public class BlockIgniteListener implements Listener {
	
	
	public MarvMonsterPack plugin;

	public BlockIgniteListener(MarvMonsterPack instance) {
		plugin = instance;
	}

	@EventHandler
	public void onBlockIgnite(BlockIgniteEvent event) {
		if (event.getCause() == IgniteCause.LIGHTNING) {
			event.setCancelled(true);
		}
	}

}